package com.maimang.platform.common.entity;

import com.maimang.platform.annotation.Excel;
import com.maimang.platform.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;


/**
 * @author Rocky
 * @version 1.0.0
 * @classname SysApiLog
 * @description <br>远程API接口请求日志记录表对应实体类</br>
 * @date 2019-09-04 16:37:40
 * @email jintaozhao@qq.com
 */
public class SysApiLog extends BaseEntity {
	private static final long serialVersionUID = 1L;


	/**
	 * 日志主键
	 */
	@Excel(name = "日志主键")
	private Integer logId;

	/**
	 * 模块标题
	 */
	@Excel(name = "模块标题")
	private String title;

	/**
	 * 请求方法（GET,HEAD,POST,PUT,DELETE等）
	 */
	@Excel(name = "请求方法")
	private String requestMethod;

	/**
	 * 方法名称
	 */
	@Excel(name = "方法名称")
	private String method;

	/**
	 * 操作类别（0其它 1后台用户 2手机端用户）
	 */
	@Excel(name = "操作类别")
	private Integer userType;

	/**
	 * 用户ID
	 */
	@Excel(name = "用户ID")
	private Long userId;

	/**
	 * 部门ID
	 */
	@Excel(name = "部门ID")
	private String deptId;
	@Excel(name = "总共耗时")
	private String runningTime;
	/**
	 * 操作人员
	 */
	@Excel(name = "操作人员")
	private String userName;
	/**
	 * 部门名称
	 */
	@Excel(name = "部门名称")
	private String deptName;
	/**
	 * 接口URL地址
	 */
	@Excel(name = "接口URL地址")
	private String apiUrl;
	/**
	 * 接口access_token
	 */
	@Excel(name = "接口access_token")
	private String accessToken;
	/**
	 * 接口请求id
	 */
	@Excel(name = "接口请求id")
	private String requestId;
	/**
	 * 接口请求参数
	 */
	@Excel(name = "接口请求参数")
	private String requestParam;
	/**
	 * 接口相应内容
	 */
	@Excel(name = "接口相应内容")
	private String responseMessage;
	/**
	 * 操作者主机地址
	 */
	@Excel(name = "操作者主机地址")
	private String userHost;
	/**
	 * 操作地点
	 */
	@Excel(name = "操作地点")
	private String userLocation;
	/**
	 * 操作状态（0正常 1异常）
	 */
	@Excel(name = "操作状态（0正常 1异常）")
	private Integer status;
	/**
	 * 操作时间
	 */
	@Excel(name = "操作时间")
	private Date operTime;

	public String getRunningTime() {
		return runningTime;
	}

	public void setRunningTime(String runningTime) {
		this.runningTime = runningTime;
	}

	public Integer getLogId() {
		return logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getRequestMethod() {
		return requestMethod;
	}

	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getApiUrl() {
		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {
		this.apiUrl = apiUrl;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public String getRequestParam() {
		return requestParam;
	}

	public void setRequestParam(String requestParam) {
		this.requestParam = requestParam;
	}

	public String getResponseMessage() {
		return responseMessage;
	}

	public void setResponseMessage(String responseMessage) {
		this.responseMessage = responseMessage;
	}

	public String getUserHost() {
		return userHost;
	}

	public void setUserHost(String userHost) {
		this.userHost = userHost;
	}

	public String getUserLocation() {
		return userLocation;
	}

	public void setUserLocation(String userLocation) {
		this.userLocation = userLocation;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getOperTime() {
		return operTime;
	}

	public void setOperTime(Date operTime) {
		this.operTime = operTime;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("logId", getLogId())
				.append("title", getTitle())
				.append("requestMethod", getRequestMethod())
				.append("method", getMethod())
				.append("userType", getUserType())
				.append("userId", getUserId())
				.append("deptId", getDeptId())
				.append("userName", getUserName())
				.append("deptName", getDeptName())
				.append("apiUrl", getApiUrl())
				.append("accessToken", getAccessToken())
				.append("requestId", getRequestId())
				.append("requestParam", getRequestParam())
				.append("responseMessage", getResponseMessage())
				.append("userHost", getUserHost())
				.append("userLocation", getUserLocation())
				.append("status", getStatus())
				.append("operTime", getOperTime())
				.toString();
	}
}
